/**
 * Created with IntelliJ IDEA.
 * Description:
 * https://gitee.com/li--jiaqiang/java-test.git
 * git pull
 * git pull origin master
 * git pull origin master --allow-unrelated-histories
 * User: 86187
 * Date: 2022-04-23
 * Time: 10:44
 */

//Scanner scan = new Scanner(System.in);

import java.util.Scanner;

public class TestArray {

    /**
     * 输出数组中有一个数只出现一次，其他的数都出现了两次
     * 找出这个数
     * @param array
     */
    public static void search(int[] array) {
        int ret = 0;
        for (int i = 0; i < array.length; i++) {
            ret ^= array[i];
        }
        System.out.println(ret);
    }

    public static void main(String[] args) {
        int[] array = {1,3,5,7,5,1,6,3,7};

        search(array);
    }
}
